Website | Taal | Gesprekspartner | Uiting | Reactie |
".$dble_frst." * ".$dble_last." * ".$dble_midn." | ||||
".$find_rchs." | ||||
".$llpzg_text." |
".$invr_rchs." |
".$totl_key."#".$totl_val." | ";
$sw=$sw+1;
}
echo "
".$usubs_domn." | ||||
".$usubs_domn." | ".$usubs_lnks." | |||
--".$scnd_key." | --".$scnd_val." | "; } // print_r($tlkd_scnd); // echo "--".$sgmt_key." | --".$subs_rchs." | "; $psgmt_key=str_replace($invr_rchs,$pinvr_rchs,$sgmt_key); // echo "".$psgmt_key." | ";
$sgmt_summ=$sgmt_summ.$sgmt_key."@";
}
}
}
// echo "
".$wrds_val." | ||||
".$wrds_val." | ".urlencode($subs_lnks)." | |||
".$lnks_sgmt." | ||||
".$lnks_sgmt." | ||||
".$subs_key." | ||||
".$invr_rchs." | ".$deel_itms[0]." | ".$invr_rchs." | >".$deel_itms[1]." | |
".$invr_rchs." | ".$deel_itms[0]." | ".$invr_rchs." | >".$deel_itms[1]." | |
SUBS KEY ".$subs_key." | ".$subs_val." | |||
".$invr_rchs." | ".$subs_lnks;" | ".$subs_rchs." | ||
".$splt_itms[0]." | ".$lrslt_rchs." | ".$splt_itms[1]." | ||
".$spec_dtls[0]." | ".$spec_dtls[1]." | |||
".$spec_val." | ||||
RSLT RCHS ".$rslt_rchs." | AIML PTRN ".$aiml_ptrn." AIMl TMPL ".$aiml_tmpl; /// if ($arelt != $aiml_ptrn.$aimpl_tmpl) { $sql1 = "INSERT INTO `aiml` (`id`,`bot_id`,`pattern`,`thatpattern`,`template`,`topic`,`filename`) VALUES (NULL,'1','$aiml_ptrn','','$aiml_tmpl','$invr_rchs','admin_added.aiml')"; mysql_query("SET CHARACTER SET utf8"); mysql_query("SET NAMES utf8"); // $logentry_result = mysql_query($sql1, $link); $arelt=$aiml_ptrn.$aimpl_tmpl; } } } } } exit; // echo " |
".$deel_itms[0]." | ".$invr_rchs." | >".$deel_itms[1]." | ||||||||
".$subs_key." | ".$subs_val." | |||||||||
".$splt_itms[0]." | ".$lrslt_rchs." | ".$splt_itms[1]." | ||||||||
".$spec_dtls[0]." | ".$spec_dtls[1]." | |||||||||
".$spec_val." | ||||||||||
AIML PTRN ".$aiml_ptrn." AIMl TMPL ".$aiml_tmpl;
$sql1 = "INSERT INTO `wiml` (`id`,`bot_id`,`pattern`,`thatpattern`,`template`,`topic`,`filename`) VALUES (NULL,'1','$rslt_rchs','$aiml_ptrn','','$aiml_tmpl','','$invr_corp')";
mysql_query("SET CHARACTER SET utf8");
mysql_query("SET NAMES utf8");
// $logentry_result = mysql_query($sql1, $link);
}
}
}
}
exit;
/////////////////////////////////////////////////
$url="https://api.gavagai.se/v3/lexicon/nl/kunstmatige%20intelligentie?apiKey=3ae70a6b61efad7a7a69b9a82f20a7df&polarizeWord=false";
$url="https://api.gavagai.se/v3/lexicon/nl?apiKey=3ae70a6b61efad7a7a69b9a82f20a7df&offset=0&pageSize=10";
$ch = curl_init( $url );
# Setup request to send json via POST.
$payload = json_encode( array( "customer"=> $data ) );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $payload );
curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));
# Return response instead of printing.
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1);
# Send request.
$result = curl_exec($ch);
curl_close($ch);
# Print response.
echo "$result"; $json = json_decode($result); // echo " JSON ".$json; // print_r($json); ////////////////////// echo "
|